revSetSpeechProvider
Type
command
Summary
The speechProvider is either "sapi4", "sapi5" or "speechmanager", or empty for the default.
Syntax
revSetSpeechProvider <speechProvider>
Description
Sets the API that LiveCode uses to speak. SAPI4 and SAPI5 are only supported on Windows. SpeechManager is only supported on OS X.
If an invalid API is specified, the default API for the currrent platform will be used. Changes to the speech provider will take affect straight away if the speech library was not loaded (i.e. nothing has been spoken), otherwise they will not take affect until the speech library is reloaded using the revUnloadSpeech command followed by the revLoadSpeech command.
The default is speechManager on OS X and SAPI5 on Windows (falling back to SAPI4 if SAPI5 is not supported).
The revSetSpeechProvider command is part of the Speech library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "Speech" library checkbox is checked.
Parameters
Name | Type | Description |
---|---|---|
speechProvider |
Examples
revSetSpeechProvider "speechmanager"
revSetSpeechProvider "sapi5"
Related
command: revSetSpeechSpeed, revUnloadSpeech, revUnloadSpeech, revSetSpeechVolume
function: result, revSpeechVoices
glossary: Standalone Application Settings, standalone application, command, LiveCode custom library
library: Speech library
Compatibility and Support
Introduced
LiveCode 2.8.1
OS
mac
windows
Platforms
desktop
server